/**
 * 
 */
package co.edu.udem.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @since 17/07/2012
 */
@Entity
@Table(name = "PLACE")
public class Place implements Serializable {

  /** */
  private static final long serialVersionUID = 2819792609446295421L;
  
  @Id
  @Column(name = "PLACECODE")
  private String placeCode;
  
  @Column(name = "PLACENAME")
  private String placeName;
  
  @Column(name = "PLACEDESCRIPTION", insertable = false, updatable = false)
  private String placeDescription;
  
  @Column(name = "ROOM")
  private String room;
  
  @Column(name = "BLOCK")
  private String block;
  
  @Column(name = "PLACETYPE")
  private int placeType;
  
  @Column(name = "PLACEDESCRIPTION")
  private String placeTypeDescription;
  
  @Column(name = "LONGITUDE")
  private Double longitude;
  
  @Column(name = "LATITUDE")
  private Double latitude;
  
  @Transient
  private String latitudeString;
  
  @Transient
  private String longitudeString; 

  /**
   * @return the placeCode
   */
  public String getPlaceCode() {
    return placeCode;
  }

  /**
   * @param placeCode the placeCode to set
   */
  public void setPlaceCode(String placeCode) {
    this.placeCode = placeCode;
  }

  /**
   * @return the placeName
   */
  public String getPlaceName() {
    return placeName;
  }

  /**
   * @param placeName the placeName to set
   */
  public void setPlaceName(String placeName) {
    this.placeName = placeName;
  }

  /**
   * @return the placeDescription
   */
  public String getPlaceDescription() {
    return placeDescription;
  }

  /**
   * @param placeDescription the placeDescription to set
   */
  public void setPlaceDescription(String placeDescription) {
    this.placeDescription = placeDescription;
  }

  /**
   * @return the room
   */
  public String getRoom() {
    return room;
  }

  /**
   * @param room the room to set
   */
  public void setRoom(String room) {
    this.room = room;
  }

  /**
   * @return the block
   */
  public String getBlock() {
    return block;
  }

  /**
   * @param block the block to set
   */
  public void setBlock(String block) {
    this.block = block;
  }

  /**
   * @return the placeType
   */
  public int getPlaceType() {
    return placeType;
  }

  /**
   * @param placeType the placeType to set
   */
  public void setPlaceType(int placeType) {
    this.placeType = placeType;
  }

  /**
   * @return the placeTypeDescription
   */
  public String getPlaceTypeDescription() {
    return placeTypeDescription;
  }

  /**
   * @param placeTypeDescription the placeTypeDescription to set
   */
  public void setPlaceTypeDescription(String placeTypeDescription) {
    this.placeTypeDescription = placeTypeDescription;
  }

  /**
   * @return the longitude
   */
  public Double getLongitude() {
    return longitude;
  }

  /**
   * @param longitude the longitude to set
   */
  public void setLongitude(Double longitude) {
    this.longitude = longitude;
  }

  /**
   * @return the latitude
   */
  public Double getLatitude() {
    return latitude;
  }

  /**
   * @param latitude the latitude to set
   */
  public void setLatitude(Double latitude) {
    this.latitude = latitude;
  }

public String getLatitudeString() {
	return latitudeString;
}

public void setLatitudeString(String latitudeString) {
	this.latitudeString = latitudeString;
}

public String getLongitudeString() {
	return longitudeString;
}

public void setLongitudeString(String longitudeString) {
	this.longitudeString = longitudeString;
}

}
